package cn.netuo.bumbersoll.util;

import android.content.Context;

import cn.netuo.bumbersoll.App;

/**
 * Created by JS_grasp on 2019/2/17.
 */
public class ArgUtil {

    public static void put(Context ctx, String name, String value){
        if(App.getApp().getTableMgr() == null) return;
        App.getApp().getTableMgr().getTbArg().importArg(name, value);
//        PreferenceUtil.putString(ctx, name, value);
    }

    public static String get(Context ctx, String name){
        if(App.getApp().getTableMgr() == null) return "";
        return App.getApp().getTableMgr().getTbArg().queryByArgName(name);
//        return PreferenceUtil.getString(ctx, name, "");
    }

}
